package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Vip;
import com.ruoyi.system.mapper.VipMapper;
import com.ruoyi.system.service.IVipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * vip设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-24
 */
@Service
public class VipServiceImpl implements IVipService 
{
    @Autowired
    private VipMapper vipMapper;

    /**
     * 查询vip设置
     * 
     * @param id vip设置主键
     * @return vip设置
     */
    @Override
    public Vip selectVipById(Long id)
    {
        return vipMapper.selectVipById(id);
    }

    /**
     * 查询vip设置列表
     * 
     * @param vip vip设置
     * @return vip设置
     */
    @Override
    public List<Vip> selectVipList(Vip vip)
    {
        return vipMapper.selectVipList(vip);
    }

    /**
     * 新增vip设置
     * 
     * @param vip vip设置
     * @return 结果
     */
    @Override
    public int insertVip(Vip vip)
    {
        return vipMapper.insertVip(vip);
    }

    /**
     * 修改vip设置
     * 
     * @param vip vip设置
     * @return 结果
     */
    @Override
    public int updateVip(Vip vip)
    {
        return vipMapper.updateVip(vip);
    }

    /**
     * 批量删除vip设置
     * 
     * @param ids 需要删除的vip设置主键
     * @return 结果
     */
    @Override
    public int deleteVipByIds(Long[] ids)
    {
        return vipMapper.deleteVipByIds(ids);
    }

    /**
     * 删除vip设置信息
     * 
     * @param id vip设置主键
     * @return 结果
     */
    @Override
    public int deleteVipById(Long id)
    {
        return vipMapper.deleteVipById(id);
    }
}
